package com.cty.servlet.servlet8.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @Auther: cty
 * @Date: 2020/2/16 16:59
 * @Description:
 * @version: 1.0
 */
@WebFilter(filterName = "MyFilter03")
public class MyFilter03 implements Filter {
    public void destroy() {
    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("MyFilter03.doFilter(我是第三个过滤器：浏览器——>服务器拦截)");
        chain.doFilter(req, resp);
        System.out.println("MyFilter03.doFilter(我是第三个过滤器：服务器——>浏览器拦截)");
    }

    public void init(FilterConfig config) throws ServletException {

    }

}
